package com.nbcb.nwql.applicantion.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.nbcb.nwql.common.excel.MyStringImageConverterUtil;
import com.nbcb.nwql.common.excel.MyUrlConverterUtil;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.net.URL;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class MyExcel {


    @ExcelProperty(value = {"编号"},index = 0)
    private String id;

    @ExcelProperty(value = {"顺序"},index = 1)
    private String num;

    @ExcelProperty(value = {"图片展示1"}, converter = MyUrlConverterUtil.class,index = 2)
    private List<URL> imageUrls;

    @ExcelProperty(value = {"图片展示2"}, converter = MyStringImageConverterUtil.class,index = 3)
    private List<String> imageStrings;
}